package com.atzzy.ysmall.ysmall_mapper;

import com.atzzy.ysmall.ysmall_beans.ProductCommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author JAVAZeng
 * @Date 2022/3/4 15:03
 * @Version 1.0
 */
@Mapper
@Repository
public interface ProductCommentsMapper {
    List<ProductCommentVo> selelctProductComments(String productId);
    Integer SumProductConmments(String productId);
    Integer SumGoodComments(String productId);
    Integer sumCommonComments(String productId);
    Integer sumBadCommentd(String productId);
    List<ProductCommentVo> selectCommentByProductId(@Param("productId") String productId, @Param("start") int start, @Param("limit") int limit);
}
